<?php
/* @var $this AccountController */
/* @var $data Account */

$this->breadcrumbs = array(
    'Accounts' => array('index'),
    $data->name,
);

$this->menu = array(
    array('label' => 'List Account', 'url' => array('index')),
    array('label' => 'Create Account', 'url' => array('create')),
    array('label' => 'Update Account', 'url' => array('update', 'id' => $data->id)),
    array('label' => 'Delete Account', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $data->id), 'confirm' => 'Are you sure you want to delete this item?')),
    array('label' => 'Manage Account', 'url' => array('admin')),
);
?>

<h1>View Account #<?php echo $data->id; ?></h1>

<?php
$this->widget('ext.extended.DetailView', array(
    'data' => $data,
    'attributes' => array(
        array(
            'name' => 'id_',
            'value' => $data->id,
        ),
        array(
            'name' => 'status_',
            'value' => $data->status,
        ),
        array(
            'name' => 'type_',
            'value' => $data->type,
        ),
        array(
            'name' => 'image_',
            'value' => $data->logo,
            'type'=>'image',
        ),
        array(
            'name' => 'name_',
            'value' => $data->name,
        ),
        array(
            'name' => 'displayName_',
            'value' => $data->name,
        ),
        array(
            'name' => 'content_',
            'value' => $data->content,
            'type'=>'html',
        ),
        array(
            'name' => 'sefUrl_',
            'value' => $data->sefUrl,
        ),
        array(
            'name' => 'metaTitle_',
            'value' => $data->metaTitle,
        ),
        array(
            'name' => 'metaDescription_',
            'value' => $data->metaDescription,
        ),
        array(
            'name' => 'metaKeywords_',
            'value' => $data->metaKeywords,
        ),
        array(
            'name' => 'address_',
            'value' => $data->fullAddress,
        ),
        array(
            'name'=>'latitude_',
            'value'=>$data->addressLatitude,
        ),
        array(
            'name'=>'longitude_',
            'value'=>$data->addressLongitude,
        ),
        array(
            'name' => 'contactNo_',
            'value' => $data->contactNumber,
        ),
        array(
            'name' => 'faxNo_',
            'value' => $data->faxNumber,
        ),
        array(
            'name' => 'email_',
            'value' => $data->email,
            'type'=>'email',
        ),
        array(
            'name' => 'url_',
            'value' => $data->webUrl,
            'type'=>'url',
        ),
        array(
            'name' => 'Created Date',
            'value' => date('d-M-Y H:i:s', $data->createdTime),
        ),
        array(
            'name' => 'Creator',
            'value' => $data->creatorName,
        ),
        array(
            'name' => 'Modified Date',
            'value' => date('d-M-Y H:i:s', $data->updatedTime),
        ),
        array(
            'name' => 'Modifier',
            'value' => $data->editorName,
        ),
    ),
));
?>
